package com.dyava.commons.exception;

/**
 * 常用业务异常
 */
public class BizFastException extends FastException implements BizException {
	int code=-1;
	public BizFastException(String message) {
		super(message);
	}
	public BizFastException(Throwable throwable) {
		super(throwable);
	}
	public BizFastException(String message, Throwable throwable) {
		super(message,throwable);
	}
	public BizFastException(int code, String message) {
		super(message);
		this.code = code;
	}
	public BizFastException(int code, Throwable throwable) {
		super(throwable);
		this.code = code;
	}
	public BizFastException(int code, String message, Throwable throwable) {
		super(message,throwable);
		this.code = code;
	}

	public int getCode(){
		return code;
	}

	@Override
	public synchronized Throwable fillInStackTrace() {
		return this;
	}

}
